﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="BookingDtl.aspx.cs" Inherits="BookingManage_BookingDtl" Title="Booking详细信息" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript" src="../javascript/My97DatePicker/WdatePicker.js"
        defer="defer"></script>

    <link href="../javascript/My97DatePicker/skin/WdatePicker.css" rel="Stylesheet" type="text/css" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="title"><asp:Label ID="lblBookingDetailMessage" runat="server" 
            Text="Booking详细信息" meta:resourcekey="lblBookingDetailMessageResource1"></asp:Label></div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="add_table tblGridView" cellspacing="1" cellpadding="3" style="width: 100%" align="center">
                <tr>
                    <td align="right" width="15%"><asp:Label ID="llblBookingNO" runat="server" 
                            Text="预约号：" meta:resourcekey="llblBookingNOResource1"></asp:Label></td>
                    <td><asp:Label ID="lblBookingNO" runat="server" 
                            meta:resourcekey="lblBookingNOResource2"></asp:Label></td>
                    <td align="right" width="15%"></td>
                    <td></td>
                    <td align="right" width="15%"><asp:Label ID="llblVendor" runat="server" Text="工厂：" 
                            meta:resourcekey="llblVendorResource1"></asp:Label></td>
                    <td><asp:Label ID="lblVendor" runat="server" meta:resourcekey="lblVendorResource2"></asp:Label></td>
                </tr>
                <tr>
                    <td align="right" width="15%"><asp:Label ID="llblBookingUser" runat="server" 
                            Text="落单人：" meta:resourcekey="llblBookingUserResource1"></asp:Label></td>
                    <td><asp:Label ID="lblBookingUser" runat="server" 
                            meta:resourcekey="lblBookingUserResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblBookingDate" runat="server" 
                            Text="落单日期：" meta:resourcekey="llblBookingDateResource1"></asp:Label></td>
                    <td><asp:Label ID="lblBookingDate" runat="server" 
                            meta:resourcekey="lblBookingDateResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblarrangeUser" runat="server" 
                            Text="分配人：" meta:resourcekey="llblarrangeUserResource1"></asp:Label></td>
                    <td><asp:Label ID="lblArrangeUser" runat="server" 
                            meta:resourcekey="lblArrangeUserResource1"></asp:Label></td>
                </tr>
                <tr>
                    <td align="right" width="15%"><asp:Label ID="llblArrangeDate" runat="server" 
                            Text="分配时间：" meta:resourcekey="llblArrangeDateResource1"></asp:Label></td>
                    <td><asp:Label ID="lblArrangeDate" runat="server" 
                            meta:resourcekey="lblArrangeDateResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblCAUser" runat="server" 
                            Text="取消分配人：" meta:resourcekey="llblCAUserResource1"></asp:Label></td>
                    <td><asp:Label ID="lblCAUser" runat="server" meta:resourcekey="lblCAUserResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblCaDate" runat="server" 
                            Text="取消分配时间：" meta:resourcekey="llblCaDateResource1"></asp:Label></td>
                    <td><asp:Label ID="lblCADate" runat="server" meta:resourcekey="lblCADateResource1"></asp:Label></td>
                </tr>
                <tr>
                    <td align="right" width="15%"><asp:Label ID="llblCancelUser" runat="server" 
                            Text="取消人：" meta:resourcekey="llblCancelUserResource1"></asp:Label></td>
                    <td><asp:Label ID="lblCancelUser" runat="server" 
                            meta:resourcekey="lblCancelUserResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblCancelDate" runat="server" 
                            Text="取消时间：" meta:resourcekey="llblCancelDateResource1"></asp:Label></td>
                    <td><asp:Label ID="lblCancelDate" runat="server" 
                            meta:resourcekey="lblCancelDateResource2"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="llblRemark" runat="server" Text="备注：" 
                            meta:resourcekey="llblRemarkResource1"></asp:Label></td>
                    <td><asp:Label ID="lblRemark" runat="server" meta:resourcekey="lblRemarkResource2"></asp:Label></td>
                </tr>
            </table>
            <div class="list_title">
             <div class="autoleft">
                <asp:Label ID="lblBookingDetail" runat="server" Text="Booking明细：" 
                     meta:resourcekey="lblBookingDetailResource1"></asp:Label></div>
                     </div>
            <div style="overflow:auto; width:100%; height:400px; padding:1px;">
            <asp:GridView ID="gvBookingList" runat="server" AutoGenerateColumns="False" onrowdatabound="gvBookingList_RowDataBound"
                OnRowEditing="gvBookingList_RowEditing" OnRowUpdating="gvBookingList_RowUpdating" OnRowCancelingEdit="gvBookingList_RowCancelingEdit"
                Width="100%" CssClass="tblGridView" meta:resourcekey="gvBookingListResource1">
                <Columns>
                 <asp:TemplateField HeaderText="序号" meta:resourcekey="TemplateFieldResource1">
                            <ItemTemplate>
                                <asp:Label ID="lblNo" runat="server" Text='<%# (Container as GridViewRow).RowIndex + 1 %>'
                                    meta:resourcekey="lblNoResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="托运人" meta:resourcekey="TemplateFieldResource2">
                        <ItemTemplate>
                            <asp:Label ID="lblShipper" runat="server" Text='<%# Eval("Shipper") %>' 
                                meta:resourcekey="lblShipperResource1"></asp:Label>
                            <asp:Label ID="lblHKShipper" runat="server" Text='<%# Eval("HKShipper") %>' 
                                meta:resourcekey="lblShipperResource1"></asp:Label>
                            <asp:Label ID="lblENGShipper" runat="server" Text='<%# Eval("ENGShipper") %>' 
                                meta:resourcekey="lblShipperResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="运输队" meta:resourcekey="TemplateFieldResource3">
                        <ItemTemplate>
                            <asp:Label ID="lblContractorName" runat="server" 
                                Text='<%# Eval("ContractorName") %>' 
                                meta:resourcekey="lblContractorNameResource1"></asp:Label>
                            <asp:Label ID="lblHKContractor" runat="server" 
                                Text='<%# Eval("HKContractor") %>' 
                                meta:resourcekey="lblContractorNameResource1"></asp:Label>
                            <asp:Label ID="lblENGContractor" runat="server" 
                                Text='<%# Eval("ENGContractor") %>' 
                                meta:resourcekey="lblContractorNameResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Appointment">
                        <ItemTemplate>
                            <asp:Label ID="lblAppointment" runat="server" Text='<%# Eval("Appointament") %>' ></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="SO_NO" meta:resourcekey="TemplateFieldResource4">
                        <ItemTemplate>
                            <asp:Label ID="lblSONO" runat="server" Text='<%# Eval("SONO") %>' 
                                meta:resourcekey="lblSONOResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="PN#" meta:resourcekey="TemplateFieldResource5">
                        <ItemTemplate>
                            <asp:Label ID="lblPNNO" runat="server" Text='<%# Eval("PNNO") %>' 
                                meta:resourcekey="lblPNNOResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="W Start" 
                        meta:resourcekey="TemplateFieldResource6">
                        <ItemTemplate>
                            <asp:Label ID="lblWinStart" runat="server" 
                                Text='<%# Eval("WinStart", "{0:yyyy-MM-dd}") %>' 
                                meta:resourcekey="lblWinStartResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="W Closed" 
                        meta:resourcekey="TemplateFieldResource7">
                        <ItemTemplate>
                            <asp:Label ID="lblWinClose" runat="server" 
                                Text='<%# Eval("WinClose", "{0:yyyy-MM-dd}") %>' 
                                meta:resourcekey="lblWinCloseResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="WHSE/TML" 
                        meta:resourcekey="TemplateFieldResource8">
                        <ItemTemplate>
                            <asp:Label ID="lblWhouse" runat="server" Text='<%# Eval("Whouse") %>' 
                                meta:resourcekey="lblWhouseResource1"></asp:Label>
                            <asp:Label ID="lblHKWhouse" runat="server" Text='<%# Eval("HKWhouse") %>' 
                                meta:resourcekey="lblWhouseResource1"></asp:Label>
                            <asp:Label ID="lblENGWhouse" runat="server" Text='<%# Eval("ENGWhouse") %>' 
                                meta:resourcekey="lblWhouseResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="ID" SortExpression="ID" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("PKID")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="JobDate" 
                        meta:resourcekey="TemplateFieldResource9">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtJobDate" runat="server" width="100px"
                                Text='<%# Eval("JobDate","{0:yyyy-MM-dd}") %>' onkeydown="return pdDate(this,event);"></asp:TextBox>
                            <asp:TextBox ID="txtJobDateH" runat="server" Width="50px" Text='<%# Eval("JobDate", "{0:HHmm}") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblJobDate" runat="server" 
                                Text='<%# Eval("JobDate", "{0:yyyy-MM-dd HH:mm}") %>' 
                                meta:resourcekey="lblJobDateResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="17%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="DeliveryDate" 
                        meta:resourcekey="TemplateFieldResource10">
                        <ItemTemplate>
                            <asp:Label ID="lblDeliveryDate" runat="server" 
                                Text='<%# Eval("DeliveryDate", "{0:yyyy-MM-dd HH:mm}") %>' 
                                meta:resourcekey="lblDeliveryDateResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="12%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Movement" 
                        meta:resourcekey="TemplateFieldResource11">
                        <ItemTemplate>
                            <asp:Label ID="lblFCLLCL" runat="server" Text='<%# Eval("FCLLCL") %>' 
                                meta:resourcekey="lblFCLLCLResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ITEM" meta:resourcekey="TemplateFieldResource12">
                        <ItemTemplate>
                            <asp:Label ID="lblItemNO" runat="server" Text='<%# Eval("ItemNO") %>' 
                                meta:resourcekey="lblItemNOResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="PCS" meta:resourcekey="TemplateFieldResource13">
                        <ItemTemplate>
                            <asp:Label ID="lblPCS" runat="server" Text='<%# Eval("PCS") %>' 
                                meta:resourcekey="lblPCSResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CTN" meta:resourcekey="TemplateFieldResource14">
                        <ItemTemplate>
                            <asp:Label ID="lblCTN" runat="server" Text='<%# Eval("CTN") %>' 
                                meta:resourcekey="lblCTNResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="VOL" meta:resourcekey="TemplateFieldResource15">
                        <ItemTemplate>
                            <asp:Label ID="lblVOL" runat="server" Text='<%# Eval("VOL") %>' 
                                meta:resourcekey="lblVOLResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Weight" 
                        meta:resourcekey="TemplateFieldResource16">
                        <ItemTemplate>
                            <asp:Label ID="lblGrossWT" runat="server" Text='<%# Eval("GrossWT") %>' 
                                meta:resourcekey="lblGrossWTResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑" meta:resourcekey="TemplateFieldResource17">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEdit" CommandName="Edit" runat="server" Text="编辑" meta:resourcekey="lbtnEditResource1"></asp:LinkButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:LinkButton ID="lbtnUpdate" CommandName="Update" runat="server" Text="更新" meta:resourcekey="lbtnUpdateResource1"></asp:LinkButton>
                            <asp:LinkButton ID="lbtnCancel" CommandName="Cancel" runat="server" Text="取消" meta:resourcekey="lbtnCancelResource1"></asp:LinkButton>
                        </EditItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center"/>
                <RowStyle HorizontalAlign="Center" />
            </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table style="width: 100%">
        <tr><td align="right"><a id="lblReturn" class="btn" style="padding-top: 3px;padding-bottom:3px;" runat="server">
            <asp:Label ID="lblBack" runat="server" Text="返回" 
                meta:resourcekey="lblBackResource1"></asp:Label></a></td></tr>
        <tr><td width="100%" align="right">
        </td></tr>
    </table>
    
</asp:Content>
